package com.cjyd.hrjb.controller.backend;

import com.cjyd.hrjb.controller.ApiGroup;
import com.cjyd.hrjb.controller.BaseBackendController;
import com.cjyd.hrjb.model.dto.AppData;
import com.cjyd.hrjb.model.dto.ResponseDto;
import com.cjyd.hrjb.service.AppDataService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created fei wo by 2020/4/9
 */
@RestController
@RequestMapping(ApiGroup.BACKEND_V1)
public class AppController extends BaseBackendController {

    private AppDataService appDataService;

    public AppController(AppDataService appDataService) {
        this.appDataService = appDataService;
    }

    @GetMapping("/appData")
    public ResponseDto<AppData> getAppData() {
        return success(appDataService.getAppData());
    }

}
